import request from "../utils/request";

export const AddMerchant = (obj) => {
    return request({
        url: 'api/Admin/AddMerchant',
        method: "post",
        data: obj
    })
}


export const GetMerchants = (obj) => {
    return request({
        url: "api/Admin/GetMerchants",
        method: 'get',
        params: obj
    })

}

export const BanMerchant = (obj) => {
    return request({
        url: 'api/admin/BanMerchant',
        method: "post",
        data: obj
    })
}
export const DeleteMerchant = (obj) => {
    return request({
        url: 'api/Admin/DeleteMerchant',
        method: "post",
        data: obj
    })
}

export const getSingleMerchant = (obj) => {
    return request({
        url: "api/admin/getSingleMerchant",
        method: 'get',
        params: obj
    })

}
export const getMerchantOrders = (obj) => {
    return request({
        url: "api/admin/getMerchantOrders",
        method: 'get',
        params: obj
    })

}









